<?php
class Success extends CI_Controller {
	public function index() {
		
		$ses = $_SESSION ['order_id'];
		if ($this->Cart_model->updateStatus ( $ses )) {
			$this->cart->destroy ();
			$this->template->write_view ( 'left', 'front_end/layout/left', null, TRUE );
			$this->template->write_view ( 'center', 'front_end/message/success', null, TRUE );
			$this->template->write_view ( 'right', 'front_end/layout/right', null, TRUE );
			$this->template->write_view ( 'menu', 'front_end/layout/menu', null, TRUE );
			$this->template->write_view ( 'menu_footer', 'front_end/layout/menu_footer', null, TRUE );
			$this->template->load ();
		} else {
			echo 'false';
		}
	
	}

}